<?php echo form_open('', array('class' => 'form-horizontal'))?>
    <legend><?php echo isset($data) ? 'Sửa' : 'Thêm mới';?> thương hiệu</legend>
    <?php if (isset($error)):?>
        <div class="alert alert-error"><?php echo $error;?></div>
    <?php else :?>
        <?php if (isset($msg)):?><div class="alert alert-success"><?php echo $msg;?></div><?php endif;?>
    <?php endif;?>
    <div class="control-group">
        <label class="control-label" for="title">Tên thương hiệu</label>
        <div class="controls">
            <input type="text" class="input-xxlarge" name="title" id="title" value="<?php echo @$data['title'];?>" placeholder="Tên thương hiệu">
        </div>
    </div>

    <div class="control-group">
        <div class="controls">
            <button type="submit" class="btn"><?php echo isset($data) ? 'Lưu lại' : 'Thêm mới';?></button>
            <input type="button" class="btn redirect" _href="<?php echo base_url('admin/manufacturer');?>" value="Hủy bỏ"/>
        </div>
    </div>
</form>